package cc.yugu.yhdw.webserver.persistence.hdw;

import cc.yugu.yhdw.common.domain.hdw.UnregisterBatteryReportLog;
import cc.yugu.yhdw.common.persistence.MasterMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * 上报日志信息
 * 
 * @Date:Created in 2018/7/2 10:18
 * @Author:
 * @Modified By: zjn 2018/7/2 10:18
 */ 
public interface UnregisterBatteryReportLogMapper extends MasterMapper {
    /**
    * 根据表名，查询表的信息
    * 
    * @Param: [tableName]
    * @Return: java.lang.String
    * @Author By: zjn 2018/7/2  10:19
    */ 
    String findTableExist(@Param("tableName") String tableName);
    /**
    * 按照电池id和创建时间查询表hdw_unregister_battery_report_log_${suffix}
    * 
    * @Param: [unregisterBatteryReportLog]
    * @Return: cc.yugu.yhdw.common.domain.hdw.UnregisterBatteryReportLog
    * @Author By: zjn 2018/7/2  10:19
    */ 
    UnregisterBatteryReportLog find(UnregisterBatteryReportLog unregisterBatteryReportLog);
    /**
    * 返回行数
    * 
    * @Param: [unregisterBatteryReportLog]
    * @Return: int
    * @Author By: zjn 2018/7/2  10:19
    */ 
    int findPageCount(UnregisterBatteryReportLog unregisterBatteryReportLog);
    /**
    * 分页查，并将查询结果按照创建时间降序排列
    * 
    * @Param: [unregisterBatteryReportLog]
    * @Return: java.util.List<cc.yugu.yhdw.common.domain.hdw.UnregisterBatteryReportLog>
    * @Author By: zjn 2018/7/2  10:19
    */ 
    List<UnregisterBatteryReportLog> findPageResult(UnregisterBatteryReportLog unregisterBatteryReportLog);
}
